package com.ruoyi.social.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品销量对象 social_product_trend
 * 
 * @author ruoyi
 * @date 2025-09-30
 */
public class SocialProductTrend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 国家(简) */
    @Excel(name = "国家(简)")
    private String region;

    /** 国家(中) */
    @Excel(name = "国家(中)")
    private String regionName;

    /** 商品ID(外) */
    @Excel(name = "商品ID(外)")
    private String productOutid;

    /** 商品ID(内) */
    @Excel(name = "商品ID(内)")
    private Long productId;

    /** 销量 */
    @Excel(name = "销量")
    private Long soldCount;

    /** 销售额 */
    @Excel(name = "销售额")
    private Long saleAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    public void setRegion(String region) 
    {
        this.region = region;
    }

    public String getRegion() 
    {
        return region;
    }

    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }

    public void setProductOutid(String productOutid) 
    {
        this.productOutid = productOutid;
    }

    public String getProductOutid() 
    {
        return productOutid;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setSoldCount(Long soldCount) 
    {
        this.soldCount = soldCount;
    }

    public Long getSoldCount() 
    {
        return soldCount;
    }

    public void setSaleAmount(Long saleAmount) 
    {
        this.saleAmount = saleAmount;
    }

    public Long getSaleAmount() 
    {
        return saleAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("region", getRegion())
            .append("regionName", getRegionName())
            .append("productOutid", getProductOutid())
            .append("productId", getProductId())
            .append("soldCount", getSoldCount())
            .append("saleAmount", getSaleAmount())
            .toString();
    }
}
